package com.tronsis.library.util;

import android.support.v4.widget.SwipeRefreshLayout;

import com.tronsis.library.R;


/**
 *  SwipeRefreshLayou设置样式
 *
 * @author Ross@tronsis.com
 *         date: 2017/7/13.
 */

public class SRFConfigUtil {

    public static void initSwipeRefreshLayout(SwipeRefreshLayout swipeRefreshLayout) {
//        swipeRefreshLayout.setProgressViewOffset(true, 0, 60); //设置下拉出现小圆圈是否是缩放出现，出现的位置，最大的下拉位置
        swipeRefreshLayout.setSize(SwipeRefreshLayout.DEFAULT);
        swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary, R.color.colorPrimary, R.color.colorPrimary, R.color.colorPrimary);
        swipeRefreshLayout.setProgressBackgroundColor(R.color.main_bg);
    }
}
